<template>
  <div>
    <p>自定义指令-不能输入特殊符号</p>
    <el-input v-model="value" v-emoji></el-input>

    <p v-loadinggg="isLoading">显示loading</p>
    <button @click="showLoading">加载</button>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      value: "",
      isLoading: false,
    }
  },
  methods: {
    showLoading() {
      this.isLoading = true
      setTimeout(() => {
        this.isLoading = false
      }, 1000)
    },
  },
}
</script>
<style lang="less" scoped></style>
